#!/bin/bash

# Initialiase BOPT environment
source ./bopt_init.sh

# set bopt vars
bopt_var_appname="bopt_runtest"
bopt_var_bugreport="shawnchin@__HIDDEN__"
bopt_var_appversion='$$Id: runtest.sh 5 2008-10-28 18:06:25Z shawnchin $$'
bopt_var_usage="This is how you do it .... "

# Do we expect arguments
bopt_expected_args $BOPT_ZERO_OR_MORE

# specify options
bopt_add_option "quiet" "q" 0 "silent mode"
bopt_add_option "verbose" "v" 0 "print full details"
bopt_add_option "directory" "d" "DIRNAME" "Provide alternative directory"
bopt_add_option "longlonglonglongoption" "l" "OPTIONPARAMLONGLONG" "This description text would get pushed to the next line hahahaha hah ah ah ahahha ahahah ahha ahaha ahha ahaha"
bopt_add_option "magic" "m" 0 "Performs amazing feats like
a) peeling carrots
b) curing cancer
c) splitting atoms"

# Process BOPT input options
source ./bopt_apply.sh

# parse command line args
bopt_parse $@

# quiet mode overrides verbose
if $o_quiet; then o_verbose=false; fi

# print debug info
bopt_debug_info

